package me.alex.learnkotlin.learnKT2

/**
 * open关键字表示Person类是可继承的
 */
open class Person(val name: String, val age: Int) {
//    var name = ""
//    var age = 0

    fun eat() {
        println("$name is eating , He is $age years old")
    }
}